<template>
  <div class="dashboard-editor-container">
    <!-- <github-corner class="github-corner" /> -->

    <div style="font-weight: bold;font-size: 20px;color: #666;text-align:center">德宏师范高等专科学校2023年公开招聘工作人员计划表</div>
    <div style="margin:10px 0px 10px 0px;font-size: 14px;color: #000;text-align:left">1、本次公开招聘参照参考研究生教育学科专业目录（2022年）执行，专业一栏没有明确层级的，均为具体专业，并注明专业代码；<br>2、应聘人员必须按要求如实填报，提供信息不实的按弄虚作假处理，取消应聘资格等。<br></div>
    
    <el-row>
      <el-table
        :data="tableData"
        border
        fit
        style="width: 100%;"
        align="center">
        <el-table-column
        label="操作"
        width="80"
        align="center"
        fixed="right"
      >
        <template slot-scope="{ row }">
          <el-button type="text" icon="el-icon-edit" @click="handleUpdate(row)" >报名</el-button>
          
        </template>
      </el-table-column>
        <el-table-column
          prop="id"
          label="序号"
          align="center"
          width="40"
          >
        </el-table-column>
        <el-table-column
          prop="unit"
          label="招聘单位名称"
          align="center"
          >
        </el-table-column>
        <el-table-column
          prop="postCode"
          label="岗位代码"
          align="center"
          >
        </el-table-column>
        <el-table-column
          prop="postName"
          label="岗位名称"
          align="center"
          >
        </el-table-column>
        <el-table-column
          prop="jobNum"
          label="招聘人数"
          align="center"
          width="80"
          >
        </el-table-column>
        <el-table-column
          prop="education"
          label="学历"
          align="center"
          >
        </el-table-column>
        <el-table-column
          prop="xuewei"
          label="学位"
          align="center"
          >
        </el-table-column>
        <el-table-column
          prop="age"
          label="年龄"
          align="center"
          width="130"
          >
        </el-table-column>
        <el-table-column
          prop="major"
          label="专业"
          align="center"
          width="230"
          >
        </el-table-column>
        <el-table-column
          prop="condition"
          label="其它招聘条件"
          align="center"
          width="130"
          >
        </el-table-column>
        <el-table-column
          prop="remark"
          label="备注"
          align="center"
          width="80">
        </el-table-column>
     </el-table>
    </el-row>
    <!-- <el-row style="background:#fff;padding:16px 16px 0;margin-bottom:32px;">
      <line-chart :chart-data="lineChartData" />
    </el-row>  -->

  </div>
</template>

<script>
// eslint-disable-next-line
/* eslint-disable */
 
  import { getPlan } from '../../api/user'
   

  export default {
    name: 'baoming',
    
    data() {
      return {
        //lineChartData: lineChartData.newVisitis,
        tableData:[],
        
      }
    },
    created() {
      //this.enroll_count()
      this.getlsit()
      //console.log(this.tableData)
    },
    /* computed:{
      
      
    }, */
    methods: {
      getlsit(){
        getPlan().then(response => {
        console.log(response)
        
        this.tableData = response.data
        //this.tableData.push({post_code:item.value,post_code1:item.label,post_code_count:enroll_num[0].count,success_list:enroll_succes[0].count,error_list:enroll_error[0].count})
      })
      },
      
      handleUpdate(row) {
        
      //console.log('handleUpdate', row)
     
      //判断时间范围
      
        this.$router.push(`/enroll/create/${row.postCode}&${row.postName}&${row.condition}`)
    
      
    },
      

     
    }
  }
</script>

<style lang="scss" scoped>
  .dashboard-editor-container {
    padding: 32px;
    background-color: rgb(240, 242, 245);
    position: relative;

    .github-corner {
      position: absolute;
      top: 0px;
      border: 0;
      right: 0;
    }

    .chart-wrapper {
      background: #fff;
      padding: 16px 16px 0;
      margin-bottom: 32px;
    }
  }

  @media (max-width: 1024px) {
    .chart-wrapper {
      padding: 8px;
    }
  }
</style>
